import { Body, Controller, Get } from "@nestjs/common";
import { NewsService } from "../service/news/news.service";

@Controller("/news")
export class NewsController{
  constructor(private newsService: NewsService) {
  }

  @Get("getNews")
  async getNews(@Body() body){
    return await this.newsService.newsSendService();
  }
}